package com.ch3cooh.common.exception;

import com.ch3cooh.common.constant.GlobalConstants;

/**
 * @功能:
 * @作者:chanson
 * @时间:2018/5/24 21:27
 */
public class OhBuyException  extends RuntimeException{

    private int statusCode = GlobalConstants.RESP_STATUS_INTERNAL_ERROR;

    public OhBuyException(int statusCode,String message) {
        super(message);
        this.statusCode = statusCode;
    }
    public OhBuyException(String message) {
        super(message);
    }

    public int getStatusCode() {
        return statusCode;
    }

}
